public class demo5 {
    public static void main(String[] args) {
        double area1 = getArea(5.1,3.1);
        double area2 = getArea(7.1,5.1);

        if(area1 > area2){
            System.out.println("第一个长方形更大");
        }else {
            System.out.println("第二个长方形更大");
        }
    }
    public static double getArea(double lenth , double width){
        double area = lenth * width;
        return width;
    }
}
